@extends('admin.layout.index')

@section('content')
@if (count($errors) > 0)
	<!-- 错误提醒 -->
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>订单明细修改</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form class="mws-form" action="/admin/order/updatee" method="post">
                    	{{ csrf_field() }}
                    		<div class="mws-form-inline"> 
                    		  @foreach($data as $k => $v )
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">收货人姓名</label>
                    				<div class="mws-form-item">
                    					<input class="large" type="text" name="tname" value="{{$v['tname']}}">
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">收货人电话</label>
                    				<div class="mws-form-item">
                                        <input class="large" type="text" name="utel" value="{{$v['utel']}}">
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                                    <label class="mws-form-label">收货人地址</label>
                                    <div class="mws-form-item">
                                      <input class="large" type="text" name="address" value="{{$v['address']}}">
                                    </div>
                                </div>
                                <!-- 隐藏域传值list页面需要的oid -->
                                <input type="hidden" name="oid" value="{{$v['oid']}}">
                                <!-- 隐藏域传值修改页面需要的id -->
                                <input type="hidden" name="id" value="{{$id}}">
                    			  @endforeach
                    		</div>
                    		<div class="mws-button-row">
                    		

                    			<input value="提交" class="btn btn-danger" type="submit">
                    			
                    		</div>
                            
                    	</form>
                    </div> 
                    </div>   	


@endsection